//
//  Extension+UILabel.swift
//  WBBeta1
//
//  Created by wustzhy on 16/8/13.
//  Copyright © 2016年 Yestin. All rights reserved.
//

import UIKit

extension UILabel{
    
    // MARK: - 便利 构造
    convenience init(textColor:UIColor,textSize:CGFloat,maxWidth:CGFloat = 0) {
        self.init()
        
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(textSize)
        if maxWidth > 0 {
            self.numberOfLines = 0
            self.preferredMaxLayoutWidth = maxWidth
        }
    }
    
}
